<?php

/**
 * Bookings form.
 *
 * @package    M2M
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class BookingsForm extends BaseBookingsForm
{
  /*public function configure()
  {
    unset( $this['created_at'], $this['updated_at']);
  }

  public function setFormFields()
  {
    $this->validatorSchema['name']->setOption('required',true);
    $this->validatorSchema['email'] = new sfValidatorEmail();
    $this->validatorSchema['company']->setOption('required',true);
    $this->validatorSchema['mobile_number']->setOption('required',true);
    $this->validatorSchema['company']->setOption('required',true);
    $this->validatorSchema['schedule']->setOption('required',true);
    $this->validatorSchema['contact_time']->setOption('required',true);

    $this->widgetSchema['schedule']->setOption('format', '%month% %day% %year%');
    $month = range(1, 12);
    $monthName = array();
    foreach($month as $m){
    $monthName[] = date('M', strtotime(date('Y')."-".$m."-01"));
    }
    $this->widgetSchema['schedule']->setOption('months', array_combine($month, $monthName));
    $years = range(date('Y'), 1960);
    $this->widgetSchema['schedule']->setOption('years', array_combine($years, $years));
  }
  */


}
